/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.mobile.auth.gatewayauth.Constant;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class JiucuoBook {
    private final int courseId;
    @NotNull
    private final String courseType;
    @NotNull
    private final String coverUrl;
    @NotNull
    private final String name;
    private final int notSeeTotal;
    private final int total;

    public JiucuoBook(@NotNull String courseType, @NotNull String coverUrl, int i2, @NotNull String name, int i3, int i4) {
        Intrinsics.checkNotNullParameter(courseType, "courseType");
        Intrinsics.checkNotNullParameter(coverUrl, "coverUrl");
        Intrinsics.checkNotNullParameter(name, "name");
        this.courseType = courseType;
        this.coverUrl = coverUrl;
        this.courseId = i2;
        this.name = name;
        this.notSeeTotal = i3;
        this.total = i4;
    }

    public static /* synthetic */ JiucuoBook copy$default(JiucuoBook jiucuoBook, String str, String str2, int i2, String str3, int i3, int i4, int i5, Object obj) {
        if ((i5 & 1) != 0) {
            str = jiucuoBook.courseType;
        }
        if ((i5 & 2) != 0) {
            str2 = jiucuoBook.coverUrl;
        }
        if ((i5 & 4) != 0) {
            i2 = jiucuoBook.courseId;
        }
        if ((i5 & 8) != 0) {
            str3 = jiucuoBook.name;
        }
        if ((i5 & 16) != 0) {
            i3 = jiucuoBook.notSeeTotal;
        }
        if ((i5 & 32) != 0) {
            i4 = jiucuoBook.total;
        }
        return jiucuoBook.copy(str, str2, i2, str3, i3, i4);
    }

    @NotNull
    public final String component1() {
        return this.courseType;
    }

    @NotNull
    public final String component2() {
        return this.coverUrl;
    }

    public final int component3() {
        return this.courseId;
    }

    @NotNull
    public final String component4() {
        return this.name;
    }

    public final int component5() {
        return this.notSeeTotal;
    }

    public final int component6() {
        return this.total;
    }

    @NotNull
    public final JiucuoBook copy(@NotNull String courseType, @NotNull String coverUrl, int i2, @NotNull String name, int i3, int i4) {
        Intrinsics.checkNotNullParameter(courseType, "courseType");
        Intrinsics.checkNotNullParameter(coverUrl, "coverUrl");
        Intrinsics.checkNotNullParameter(name, "name");
        return new JiucuoBook(courseType, coverUrl, i2, name, i3, i4);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof JiucuoBook)) {
            return false;
        }
        JiucuoBook jiucuoBook = (JiucuoBook) obj;
        return Intrinsics.areEqual(this.courseType, jiucuoBook.courseType) && Intrinsics.areEqual(this.coverUrl, jiucuoBook.coverUrl) && this.courseId == jiucuoBook.courseId && Intrinsics.areEqual(this.name, jiucuoBook.name) && this.notSeeTotal == jiucuoBook.notSeeTotal && this.total == jiucuoBook.total;
    }

    public final int getCourseId() {
        return this.courseId;
    }

    @NotNull
    public final String getCourseType() {
        return this.courseType;
    }

    @NotNull
    public final String getCoverUrl() {
        return this.coverUrl;
    }

    @NotNull
    public final String getName() {
        return this.name;
    }

    public final int getNotSeeTotal() {
        return this.notSeeTotal;
    }

    public final int getTotal() {
        return this.total;
    }

    public int hashCode() {
        return (((((((((this.courseType.hashCode() * 31) + this.coverUrl.hashCode()) * 31) + this.courseId) * 31) + this.name.hashCode()) * 31) + this.notSeeTotal) * 31) + this.total;
    }

    @NotNull
    public String toString() {
        return "JiucuoBook(courseType=" + this.courseType + ", coverUrl=" + this.coverUrl + ", courseId=" + this.courseId + ", name=" + this.name + ", notSeeTotal=" + this.notSeeTotal + ", total=" + this.total + ')';
    }
}